package com.cn.xiaonuo.slbfinances.slbshopes.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.cn.xiaonuo.slbfinances.shopassets.entity.SlbShop;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

@Mapper
@Repository
public interface SlbShopMapper extends BaseMapper<SlbShop> {
    /**
     *平台打款记录
     */
    public List<Map<String, Object>> platformPaymentRecord(@Param("realName") String realName,
                                                     @Param("phone") String phone,
                                                     @Param("status") String status,
                                                     @Param("startTime") String startTime,
                                                     @Param("endTime") String endTime,
                                                     @Param("userId") String userId,
                                                     @Param("order_id") Integer order_id
                                                     );

    /**
     *平台打款记录
     */
    public Double platformPaymentRecordSumRoyalty(@Param("realName") String realName,
                                           @Param("phone") String phone,
                                           @Param("status") String status,
                                           @Param("startTime") String startTime,
                                           @Param("endTime") String endTime,
                                           @Param("userId") String userId,
                                           @Param("order_id") Integer order_id
    );

    /**
     *平台打款记录
     */
    SlbShop getByUserId( @Param("userId") Integer userId);
}
